package com.woniuxy.kaer.service.controller;


import com.woniuxy.kaer.commons.util.Result;
import com.woniuxy.kaer.service.dto.ServiceEvaluateDto;
import com.woniuxy.kaer.service.service.ServiceEvaluateService;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 程诗洋
 * @since 2025年02月17日
 */
@RestController
@RequestMapping("/serviceEvaluate")
@Api(tags = "服务订单评论类")
public class ServiceEvaluateController {
    @Resource
    private ServiceEvaluateService serviceEvaluateService;
    //查询订单评论
    @GetMapping("/getServiceEvaluateByShopId")
    public Result getServiceEvaluateByShopId(String shopId)throws Exception{
        List<ServiceEvaluateDto> serviceEvaluateDtos =serviceEvaluateService.getServiceEvaluateByShopId(shopId);
        return Result.succeed("查询成功",serviceEvaluateDtos);

    }
}

